package com.kindergarten.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.kindergarten.utils.DateUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.assertj.core.util.DateUtil;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author bruce
 * @since 2022-10-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Material extends PagePojo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 物资名
     */
    private String name;

    /**
     * 数量
     */
    private Integer count;

    /**
     * 单价
     */
    private Double price;

    /**
     * 来源
     */
    private String fromplace;

    /**
     * 描述
     */
    private String description;

    /**
     * 创建时间
     */
    private String createTime= DateUtils.now();

    /**
     * 是否删除 1删除 0未删除
     */
    private Integer del=0;

}
